package sg.edu.nus.iss.vmcs.store;
import java.util.*;
public class DrinkBrandComparator implements Comparator{
	public int compare(Object obj1, Object obj2) {
		if (obj1 instanceof StoreItem && obj2 instanceof StoreItem) {
			StoreItem drinkStoreItem1 = (StoreItem) obj1;
			StoreItem drinkStoreItem2 = (StoreItem) obj2;
			
			return drinkStoreItem2.getContent().getName().compareTo(drinkStoreItem1.getContent().getName());
			
		}
		
		System.out.println("CoinValueComparator.compare: unknown objects");
		return -1;
	}
}
